﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CjaxExam.Models.DataBase;

namespace CjaxExam.Models.Interfaces
{
    interface IForExam
    {  
    }
    interface IForPaper
    {
        IList<ex_paper> ListP();//试卷
    }
    
    interface IForPublish
    {
        IList<ex_publish> ListE();//考试
        //IList<ex_publish> ListE2();// 已考试卷
        //IList<ex_publish> ListE3();// 待考试卷
        //IList<ex_publish> ListE4();// 待评试卷
        IList<GetKgByExamResult> ListKg(string id);//考卷客观题
        IList<GetZgByExamResult> ListZg(string id);//考卷主观题
        IList<ex_publish> GetExamInfo(string id);//获取考卷的基本信息
        IList<GetMarkByExamResult> GetMark(string id);//获取试卷的卷面分数等信息
        IList<ex_user> GetUserNameBySecond(string second);
        IList<ex_user> GetUserNameByThird(string third);
        IList<ex_user> GetUserNameAll();
        IList<ex_paper> GetPaper();
       // IList<ex_publish> UpdateExam();
      //  IList<ex_paper> GetPaperByExam(string id);
    }

    interface IForProperty//定义包含ex_publish里字段变量的属性
    {
         string Pid
        {
            get;
            set;
        }
         string Pname
        {
            get;
            set;
        }
         DateTime Pdate
        {
            get;
            set;
        }
         Int64 Pee
        {
            get;
            set;
        }
         string Ptt
        {
            get;
            set;
        }

         string Per
        {
            get;
            set;
        }
         string Pet
        {
            get;
            set;
        }
         string Ppass
        {
            get;
            set;
        }
        string Pei
        {
            get;
            set;
        }
        string Pea
        {
            get;
            set;
        }
        string Paperid//与考试关联的试卷
        {
            get;
            set;
        }
        string Userid//与考试关联的用户
        {
            get;
            set;
        }
        string ExamUserid
        {
            get;
            set;
        }
    
    }
    interface IForKg
    { 
       
    }
    //interface IForPublish1
    //{
       
    //}
    //interface IForPublish2
    //{
        
    //}
    //interface IForPublish3
    //{
       
    //}
    interface IForPE
    {
        IList<ex_paper_exam> ListPE();//关联表

    }
}
